public class TestComputer {
    public static void main(String[] args) {
        Computer c = new Computer();
        c.poweron();
        Mouse m = new Mouse();
        c.useDevice(m);
        Keyboard k = new Keyboard();
        c.useDevice(k);
        c.poweroff();

    }

}
